package com.meilai.project.dto.personal.mission;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 张驰
 * @date 2022/3/24 18:30
 */
@Data
public class MissionDTO {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "任务标题")
    private String title;

    @ApiModelProperty(value = "任务描述")
    private String desp;

    @ApiModelProperty(value = "1紧急，2较紧急，3普通，4不紧急")
    private Integer emergency;

    @ApiModelProperty(value = "1重要，2较重要，3普通，4不重要")
    private Integer important;

    @ApiModelProperty(value = "截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadline;

    @ApiModelProperty(value = "是否开启提醒，0否，1是")
    private Integer use_tip;

    @ApiModelProperty(value = "首次提醒需要提前多少时间（填写的数字）")
    private Long prev_tip_gap_num;

    @ApiModelProperty(value = "首次提醒需要提前多少时间（单位）1分钟，2小时，3天")
    private Integer prev_tip_gap_unit;

    @ApiModelProperty(value = "开启持续提醒，0否，1是")
    private Integer use_continue_tip;

    @ApiModelProperty(value = "持续提醒间隔（填写的数字）")
    private Long continue_tip_gap_num;

    @ApiModelProperty(value = "持续提醒间隔（单位）1分钟，2小时，3天")
    private Integer continue_tip_gap_unit;

    @ApiModelProperty(value = "执行人ids")
    private List<Long> operator_ids;

    @ApiModelProperty(value = "创建人id")
    private Long creator_id;
}
